.class final Lcom/a0soft/gphone/app2sd/a/c;
.super Ljava/lang/Object;
.source "AppMgr.java"

# interfaces
.implements Ljava/util/Comparator;


# instance fields
.field final synthetic a:Z

.field final synthetic b:Landroid/content/Context;

.field final synthetic c:I

.field final synthetic d:Lcom/a0soft/gphone/app2sd/a/a;


# direct methods
.method constructor <init>(Lcom/a0soft/gphone/app2sd/a/a;ZLandroid/content/Context;I)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 176
    iput-object p1, p0, Lcom/a0soft/gphone/app2sd/a/c;->d:Lcom/a0soft/gphone/app2sd/a/a;

    iput-boolean p2, p0, Lcom/a0soft/gphone/app2sd/a/c;->a:Z

    iput-object p3, p0, Lcom/a0soft/gphone/app2sd/a/c;->b:Landroid/content/Context;

    iput p4, p0, Lcom/a0soft/gphone/app2sd/a/c;->c:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)I
    .locals 10
    .parameter
    .parameter

    .prologue
    const-wide/16 v8, 0x0

    const/4 v7, 0x1

    const/4 v6, -0x1

    .line 178
    iget-boolean v0, p0, Lcom/a0soft/gphone/app2sd/a/c;->a:Z

    if-eqz v0, :cond_1

    .line 179
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/a/c;->b:Landroid/content/Context;

    invoke-static {v0, p1}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->a(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    .line 180
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/a/c;->b:Landroid/content/Context;

    invoke-static {v1, p2}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->a(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v1

    .line 181
    if-eqz v0, :cond_0

    if-nez v1, :cond_0

    move v0, v7

    .line 206
    :goto_0
    return v0

    .line 182
    :cond_0
    if-nez v0, :cond_1

    if-eqz v1, :cond_1

    move v0, v6

    goto :goto_0

    .line 185
    :cond_1
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/a/c;->d:Lcom/a0soft/gphone/app2sd/a/a;

    invoke-static {v0}, Lcom/a0soft/gphone/app2sd/a/a;->a(Lcom/a0soft/gphone/app2sd/a/a;)Ljava/util/concurrent/ConcurrentHashMap;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/a0soft/gphone/app2sd/a/g;

    .line 186
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/a/c;->d:Lcom/a0soft/gphone/app2sd/a/a;

    invoke-static {v1}, Lcom/a0soft/gphone/app2sd/a/a;->a(Lcom/a0soft/gphone/app2sd/a/a;)Ljava/util/concurrent/ConcurrentHashMap;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/a0soft/gphone/app2sd/a/g;

    .line 189
    iget v2, p0, Lcom/a0soft/gphone/app2sd/a/c;->c:I

    packed-switch v2, :pswitch_data_0

    .line 200
    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/a/g;->e()J

    move-result-wide v2

    invoke-virtual {v1}, Lcom/a0soft/gphone/app2sd/a/g;->e()J

    move-result-wide v4

    sub-long/2addr v2, v4

    .line 203
    :goto_1
    cmp-long v4, v2, v8

    if-gez v4, :cond_2

    move v0, v7

    goto :goto_0

    .line 191
    :pswitch_0
    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/a/g;->c()J

    move-result-wide v2

    invoke-virtual {v1}, Lcom/a0soft/gphone/app2sd/a/g;->c()J

    move-result-wide v4

    sub-long/2addr v2, v4

    .line 192
    goto :goto_1

    .line 194
    :pswitch_1
    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/a/g;->b()J

    move-result-wide v2

    invoke-virtual {v1}, Lcom/a0soft/gphone/app2sd/a/g;->b()J

    move-result-wide v4

    sub-long/2addr v2, v4

    .line 195
    goto :goto_1

    .line 197
    :pswitch_2
    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/a/g;->d()J

    move-result-wide v2

    invoke-virtual {v1}, Lcom/a0soft/gphone/app2sd/a/g;->d()J

    move-result-wide v4

    sub-long/2addr v2, v4

    .line 198
    goto :goto_1

    .line 204
    :cond_2
    cmp-long v2, v2, v8

    if-lez v2, :cond_3

    move v0, v6

    goto :goto_0

    .line 206
    :cond_3
    iget-object v0, v0, Lcom/a0soft/gphone/app2sd/a/g;->b:Ljava/lang/String;

    iget-object v1, v1, Lcom/a0soft/gphone/app2sd/a/g;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->compareToIgnoreCase(Ljava/lang/String;)I

    move-result v0

    goto :goto_0

    .line 189
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method


# virtual methods
.method public final bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 176
    check-cast p1, Ljava/lang/String;

    check-cast p2, Ljava/lang/String;

    invoke-direct {p0, p1, p2}, Lcom/a0soft/gphone/app2sd/a/c;->a(Ljava/lang/String;Ljava/lang/String;)I

    move-result v0

    return v0
.end method
